package com.study.staticdemo;

public class StaticDemo1 {
    //加static叫做静态变量、类变量，属于类持有，在内存中加载一次，被类和类的全部对象共享
    //实例变量：无static修饰，属于某个对象
    public static void main(String[] args) {
        Student s = new Student();
        s.name = "哈哈";
        Student.score=6;
        System.out.println(s.name + Student.score);
    }
}
